function preds = predict(bnet, evidence, question)
    engine = jtree_inf_engine(bnet);    
    engine=enter_evidence(engine,evidence);
    marg = marginal_nodes(engine, bnet.names(question));
    
    preds=marg.T;
end